﻿/*****************************************************************//**
 * @file    FITKViewAdaptorGeoPart.h
 * @brief   Adaptor for geometry command data.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-11-15
 *********************************************************************/

#ifndef __FITKVIEWADAPTORGEOPART_H__
#define __FITKVIEWADAPTORGEOPART_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for 'geometry command'.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-11-15
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorGeoPart : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorGeoPart);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-15
         */
        explicit FITKViewAdaptorGeoPart() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-15
         */
        ~FITKViewAdaptorGeoPart() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-15
         */
        bool update() override;

    };

    // Regist geometry part command adaptor
    Register2FITKViewAdaptorFactory(GeoPart, AbaqusData::FITKAbaqusPart, FITKViewAdaptorGeoPart);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORGEOPART_H__